adding option of user to set interval between photos