Add support for rendering images into a native surface object