Re-factored and added functions for managing the loading of images.