Added custom caching to the image loader.
Updated the cache initialization.
Moved around some constants.