Error when try to make prediction using trained learner

Hi everyone, I am following the chapter 4 in the book, and after training a model to classify digit 3 and 7, I get stuck when trying to predict the an image using predict() function. Is there any suggestion for me in this case. Thanks alot!