Fixed bug with image loader.