     url = "/api/name/#{width}/#{height}/#{foreground}/#{name}"
     qs = ""
     if customLabel != '' then qs += "label=#{customLabel}"
+    if qs != '' then qs += "&"
     if rotation != 0 then qs += "rotation=#{rotation}"
     return if qs == "" then url else url + "?" + qs
 

    url = "/api/name/#{width}/#{height}/#{background}/#{foreground}/#{name}"
    qs = ""
    if customLabel != '' then qs += "label=#{customLabel}"
    if rotation != 0 then qs += "rotation=#{rotation}"
    return if qs == "" then url else url + "?" + qs


    url = "/api/smiles/#{width}/#{height}/#{foreground}/#{smiles}"
    qs = ""
    if customLabel != '' then qs += "label=#{customLabel}"
    if qs != '' then qs += "&"
    if rotation != 0 then qs += "rotation=#{rotation}"
    return if qs == "" then url else url + "?" + qs

