split an image file