Normalize rotation matrix and fix imagesize bug