Create an image duplicate (useful for transformations).
Image imageCopy(Image image) { return Image.fromRef(library.ImageCopy(image.ref)); }