add mirror flag to transformation