(core+lua) added tag_image_transform function

This function associates a lua- callback with a
specific transform chain and slot. When the transform
completes, the callback will be activated.