draw: add support for passing images to vs/gs shaders.