Moved all working code into a class for loading and managing images.

Cannot create an instance of Image_manager. All images loaded can be
accessed from within any file.