Added size-allocate signal for resizing the window
Improved resizing when rotating images