Updated makeIcon to remove temp canvas element added to create icon.