using jpg files instead of avi