add image_check functionality