remove obsolete code for canvas
to be simplified for createElementNS