added alpha threshold

fixed wrong height of last area