Taking the entity position into account in the Render function