adds code for image file I/O and manipulation