rotate image
merging experiments for orientation with event handling