apply textures in canvas