create generic bind function for textures