libcashew - TODO: remove all the rendering related code from libcashew