def rasterize(svg, options={})
      File.open(@temp_folder + '/temp_svg.svg', 'w') { |file|
        file.write(svg)
      }
      
      `#{@command} -d #{@temp_folder} -m image/#{options[:as].downcase} #{@temp_folder}/temp_svg.svg`
      
      image = ""
      File.open(@temp_folder + '/temp_svg.' + options[:as].downcase, 'r') { |file|
        image = file.read
      }
      
      image
    end
def rasterize(svg, options={})
      File.open(@temp_folder + '/temp_svg.svg', 'w') { |file|
        file.write(svg)
      }
      
      `#{@command} -d #{@temp_folder} -m image/#{options[:as].downcase} #{@temp_folder}/temp_svg.svg`
      
      image = ""
      File.open(@temp_folder + '/temp_svg.' + options[:as].downcase, 'r') { |file|
        image = file.read
      }
      
      image
    end
Returns new BatikRasterizer.

 Options:
 command:: Command needed to execute Batik. (ie: 'java -classpath {...}')
 temp_folder:: Folder for storing temporary files being passed between Scruffy and Batik.
 Rasterize graph.

 Options:
 as:: Image format to generate (PNG, JPG, et al.)