added aspect ratio filtering and video recording