This almost sounds like the RGB triplet positions have been scrambled somehow. What is the exact filename and line number of the affected code?
Almost? But I could be in left field and the appearance of scrambling is a mirage.
Look at bug report 727 for the details (http://bugs.pearsoncomputing.net/show_bug.cgi?id=727).
Darrell