How to programmatically display an image field in Drupal 7 + default value when needed I've used field_view_field to display an image field for a specific entity in Drupal. The problem is when that entity doesn't have any value for field. I expect field_view_field to display the default image for field but it doesn't load default value of the field.

How can I do this?
field_view_field is a correct function to use if you want to display node image (if provided) or default (attached to field settings) if not.

$node = node_load($nid);
print render(field_view_field('node', $node, 'field_image')));