A free-kick double from Dom Thomas helped Queen's Park on their way to a 3-0 win over Peterhead and into the Fourth Round.