Cleaning up main just to get rid of useless stuff.
Adding image_t and image_dict_t.
Adding an image caching feature so images are loaded from drive at most once. Also removing attempts to free these images in other parts of the code.
Still just cleaning up a bit.