About imageOrientation for inflatedImage

Hi there,
just found a small issue. For some cases, the images took in landscape mode can't be display according to correct orientation. I found the reason that these images are always set in "UIImageOrientationUp". Therefore, I did a little adjustment. Hope it could help. Thanks!!!