Path-related bugfix for broken prior images.

Hopefully these changes will insulate the code against path changes in the future. The priors page now also uses ruby tags instead of hardcoded urls and added public/images/prev to the commit itself, while ignoring .png files in there.