Fixed resizing issue on rotate. fixed #80 fixed #64
Added pragma mark