crudely but effectively replaced an image tag with an inline svg. replace rest and clean up the code next