1st commit diverging from Stefan's codebase

Added a function to rotate the image.  Right now it doesn't look at
phone orientation to determine what to do.