Proper shadow detection