Bacteriorhodopsin based photonic logic gate and its applications to grey level image subtraction