Camera preview size selection based on device

Selects the camera preview size by looking for the largest (or first)
preview size with the closest ratio to the preview surface.