Add an image deletion function