Flicker after img:readback()

The title says it all really. I use img:readback() at the end of my draw loop. I put it there because all subsequent drawings dissapear (maybe for one frame or so).

But I use it in a class, so when I call it from another project, all drawings that come after will also flicker.

Am I using it wrong or is it a bug? How can I fix this?