Define a texture from a bitmap

See if this will work for you (Rhino 6 and later)