Added custom caching to the image loder.