Limit recently viewed photos to last 48 hours.

Adds the required functionality to limit the displayed recently
viewed photos to those who were viewed in the last 48 hours.