Fix center methods for object’s with different originX/originY
object.center() only re-renders canvas once instead of twice
Update unit tests
Merge pull request #1003 from Kienz/patch-2

Fix center methods for object’s with different originX/originY