Implement image file handling.