added rotate image for incorrect orientation