Added handling for image server exceptions