I support the idea of converting to w/h instead of h/w.

But then you also need to convert in the previewSizes.filter() function below, right?  That function still seems to use h/w.