How to render svg image with stylesheets using RMAgick

Dear Friends,

I have rendered the svg image into jp/png format using RMagick like,

img =“bee3.svg”).first
thumbnail = img.thumbnail(img.columns0.19, img.rows0.19)

The above code works well for rendering a SVG image without any
stylesheets into gif format, but when i write some style sheets for SVG
and if i tried render the SVG into gif, it causing rendering error.

Actually svg images are rendered but the stylesheet in not applied using
RMagick. How i should proceed to render stylesheet informations as well.

Thanks in advance

Jose Martin