- DBG("Aplying background");
- uns flags = rdi->image->flags & ~IMAGE_ALPHA;
- rdi->need_transformations = (flags & io->flags) & IMAGE_NEW_FLAGS;
- struct image *img = image_new(io->thread, io->cols, io->rows, flags, rdi->need_transformations ? NULL : io->pool);
+ struct image *img = image_new(io->context, io->cols, io->rows, io->flags, io->pool);