Fixing progress bar for cached images.