add scaleToSquare method