Different Image Algorithm coded in C#