Error with getting pixels - C#