Custom painting related to transformation