added data url export functionality. the data url is logged to console