update image to image_name and db records