add motion alarm photo delay and photo count