add conditional nm_post_has_image #104