added export canvas image functionality