replaced orientation:0 with orientation:UIImageOrientationUp to fix type error