comment out pixWrite in debug mode