fix canvas bug with crop tool in testPlugin