Fixed `resize` using the tranformatio matrix