Accessing individual frame from the video file

frame is already an image.

this is clearly the result of blindly copypasting 2 code snippets, that dont belong together