implemented offset-x and y in the renderer