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

object.center() only re-renders canvas once instead of twice
Update unit tests