Added rotates and flip, but haven't unit tested them yet.