The Talbot effect in a metamaterial