Thomas pens Pompey deal