added scope methods and changed the index page to only display the 5 most recent pictures