Make sure to remove all temp files in svg_to_image on errors