You may get an error when you try to create a clipping mask in Illustrator because the object to be used as the clipping mask is not in front of the image. to change the order you can go to the layers panel and drag the image below the clipping mask object, or right-click on the clipping mask object on the canvas and click Arrange then Bring to front.