Cutting off the empty space on the side of shape.
Fixed rotation whie using resizable board.
Merge with master.