Generate time lapse videos from a collection of snapshot images using Python and OpenCV