added progress bar for loading image