Use const reference to pattern vector

Also clean up poster template