Improve video quality.

Use the actual camera preview and video sizes to find the largest
matching size for preview and recording.