get date and time to generate image file name