migrated 2D from KineticJS to FabricJS