delete an image file