Fix to load each image only once