Image resizing with the window added.