image upload using svg instead of canvas