Sobel method modified in order to return a bmp image and not only
the data of the bmp. That will fix possibles headers problems.