Allow final image to be oriented

Add option to specify final orientation (i.e, "portrait" or "landscape")
of image.  If the natural orientation not what is requested the image is
rotated 90 degrees counter-clockwise.