use svg method to draw a dynamic icon