When resizing canvas, free old surface