fix saving resized shapes