Improve flash/no flash detection.