better svg to img handeling