Added function to recognize color in certain area of the image
finally rotated Image works flawlessly
rewrite function to detect colors in certain rectangles