loading image and other fixes