Added progress dialog when loading image.