No, I had to remove all setBufferedToImage calls, because then JUCE would throw an assertion.
See here: