Sample PHP export for an image field named “test”:
array (
'key' => 'field_51db3a97ed096',
'label' => 'test',
'name' => 'test',
'type' => 'image',
'save_format' => 'object',
'preview_size' => 'thumbnail',
'library' => 'all',
),
I would be curious to hear about whether adding this array into your code produces an image field properly.