Converting user drawn on canvas object toDataURL, appended to a div for testing purposes