Improves performance by not loading images multiple times.