Changed bitmap rotation to view rotation for performance
uncommented code