Add translateX and translateY functions