Removed annoying flashing when loading the image by adding caching