get rid of redundant canvas element