changed to use the ofPixels swap method to ensure all variales get swapped. fixes #3346