If both conditions are true, the post image is displayed using WordPress 2.9 function the_post_image().

Link:
WordPress 2.9 : Display post image with backward compatibility