Fixed Transformation Matrix

Also, Resizing. Ready for real work.