Changed export to use data url
File saving