added method to read frames from the video