Fixed duplicate image loading bug.