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

Little bug I noticed :)