fixed a little bug. add 127 was missing when performing the sobel operation