Now saving images in avi in real time!