fixes in textures, now it has toCanvas method