v0.14 added rect logic and antialiasing