Added automatic page orientation in image transformer