Got scale and resize working. Found a lot of bugs and fixed all of them