allow the deleting of an image from edit page