replace canvas usage from operator[] to operator()