Multi-layered tensor networks for image classification