capture avi frames to images