Rotation implemented

Switch button and flash mode view now rotate according to device
orientation.