I struggled for a while trying to come up with a way to do this using some complicated php but easiest way to do it is to use some CSS:
In the loop place <?php the_content(); ?> inside a div like so:
<div id="no_image"><?php the_content(); ?></div>
Then in your CSS:
#no_image img{
display:none;
}