script to sort and manage timelapse images