Sobel, Prewitt: add new option 'rshift'

also, fix some bug on over 8bit formats