implement transform.flip and add stubs for other transform functions