Split ImageFile into ImageFilepath, ImageReader and ImageWriter.