Partially fixed Delete in For-Each loop. Huge performance improvement to putpixel and getpixel used on locked buffer.