Hopefully fixed resizing now. Started work on file saving, but so far it's no good.