added domain scale and offset for rendering