Added code for BGR to HSI conversion