use imagetovideo to convert images into videos