Undefined error for field image
Probably you have nodes where the "field_heading" field has not been set, or you didn't enable the field in output tab on content type section.

Try this code:

if (!empty($content['field_heading'])) { 
  print render($content['field_heading']);
}