apply_imager_operation function

Apply imager operations to layers of an image