Added example file

Added example file
added transparent parameter for greater control of canvas output when
adding a DOM element