added context transforming method for rotation with anchor point