photo rotate

misc fixes