Changed the way images are loaded.