updated the code to display time in the picture