That worked, sorta.
I have the code in the wrong place.
The row is still being returned but the image is not. So I moved the <?php } ?> to before to </td> and it works fine. Thanks!
Only issue now is that the row count is still counting both rows. So it shows only 1 row visually, the counter says 1 of 2 of 2.