added param for specifying if user want's SVG true or false