added ability to record at higher resolutions