throw ImageException instead of Exception