Adding opacity, support custom secure mode, expose transformation_string