Get translation transformation working for rects