Assignment 4: Recently Viewed Photos functionality implemented.