Detecting licence on templates instead of on categories
Handle images stored in local Wikipedias

resolves #22