Updated the way image is loaded.