Accept existing Vignette URLs

Accept existing Vignette URLs for getThumbURL(), in order to change the
mode of an existing thumbnail or convert a full-sized image to a
thumbnail.
How about extracting this block to a separate function? IMO it would look cleaner.