accept canvas element