render.rs: change bool return type to Result
add Renderer::read_pixels, Texture::lock, Texture::unlock.