changed the dependency to canvas@1.0.0