pulls in pictures index from the database
adds functionality to add pictures from a form