call require 'qtsvg' in the function so that it is not a requirement