canvas draw method handles string/array/obj input