pass options in canvas/svg factories