Adding functionality to display the most recent picture on the main page and save each captured image with a unique filename based on the current date and time