ToGrayscale now removes white borders