Use threshold when calculating the camera's best preview and picture size