You could implement hook_field_attach_view_alter(), which allows modules to alter the rendering array for the entity. Using the following code, I found the array structure for the image field attached to the nodes I was watching.
function code_testing_field_attach_view_alter(&$output, &$context) {
if ($context['entity_type'] == 'node' && !empty($output['field_image'])) {
$image = $output['field_image'];
unset($image['#object']);
watchdog('code_testing', 'Image: @image', array('@image' => var_export($image, TRUE)), WATCHDOG_DEBUG);
}
}
In my case, the array had the following structure.
array (
'#theme' => 'field', '#weight' => '2', '#title' => 'Image',
'#access' => true, '#label_display' => 'hidden', '#view_mode' => 'full',
'#language' => 'und', '#field_name' => 'field_image', '#field_type' => 'image',
'#field_translatable' => '0', '#entity_type' => 'node', '#bundle' => 'article',
'#items' => array(
0 => array(
'fid' => '129', 'alt' => '', 'title' => 'title',
'width' => '235', 'height' => '568', 'uid' => '1',
'filename' => 'imagefield_rGEXAF.png',
'uri' => 'public://field/image/imagefield_rGEXAF.png',
'filemime' => 'image/png', 'filesize' => '1372', 'status' => '1',
'timestamp' => '1354109930'
)
),
'#formatter' => 'image',
0 => array(
'#theme' => 'image_formatter',
'#item' => array(
'fid' => '129', 'alt' => '',
'title' => 'title',
'width' => '235', 'height' => '568', 'uid' => '1',
'filename' => 'imagefield_rGEXAF.png',
'uri' => 'public://field/image/imagefield_rGEXAF.png',
'filemime' => 'image/png', 'filesize' => '1372', 'status' => '1',
'timestamp' => '1354109930'
),
'#image_style' => 'large', '#path' => ''
)
)
The code you should write in your module is similar to the following one:
function mymodule_testing_field_attach_view_alter(&$output, &$context) {
if ($context['entity_type'] == 'node' && !empty($output['field_image'])) {
// You can check the node ID with context['entity']->nid, and the content type
// with context['entity']->type.
unset($output['field_image'][0]['#item']['height']);
unset($output['field_image'][0]['#item']['width']);
}
}