Configurable blackborder threshold added