Updated plugin API for textures, rebuild