Rewrite image_viewer.c to not create a temporary file for the image being loaded