updated paint_svg operation