`optimalPreviewSize` should now have the `scale` attribute in this condition using the updated patch.