improvements to loading image