the portraits , it seemed , were all the work of a single painter , one jacob dewitt , who had been commissioned by charles ii , upon that worthy 's restoration , to produce portraits of all the king 's ancestors , from the time of robert the bruce onward .