Changes for handling remote errors while accessing images from remote site