added progress bar when loading images