Fix constructor for using existing canvas element