Updated image loading stuff.