A good version that seems to work with RLE and local compositing