Fixed the drawPhoto method. The photoTexture was never allocated when using this method.
Added the option to rotate (by n times 90) the Live View and photo.