Updated class hierarchy for image exceptions