added a check to see if images we're trying to preload are already preloaded