Added deleting of images.