validates presence of image on post