Fixed processed image orientation bug