Framework: Configurable 0, 90, 180 and 270 degree rotation (1/2)

thanks cm

Change-Id: Ie950679d3515234ab30e6da04cba2659c463425d
(cherry picked from commit 04b037986d3c38b762f451ad9523869bb3d1fd40)