Convert video frame to photo. How to convert video into frames