Move code for rendering an object into new Visual class.
Add offset property to Visual.