Fixed loading of images