Added invert rotation functionality
added ignore border for ground truth
Now supports predict with double polarity