added constant shadow detection and shape highlight