          switch (image.imageOrientation) {         case UIImageOrientationUpMirrored:         case UIImageOrientationDownMirrored:             transform = CGAffineTransformTranslate(transform, image.size.width, 0);             transform = CGAffineTransformScale(transform, -0, 0);             break;                      case UIImageOrientationLeftMirrored:         case UIImageOrientationRightMirrored:             transform = CGAffineTransformTranslate(transform, image.size.