Try-error for image