Error catching for image fetch