method image for entity using main_photo