SetPixel Written and Leak-Free

Not tested yet, but seems nice.  Changed parameters to RGB.