added ability to extract frames of different resolutions