delete image if it could not be stored