If table column has an image that exists, fill an excel cell with a number

Hey all,

I am trying to pull down a web element from an HTML Table that contains a gif and copy it to excel. However, a gif isn’t acceptable to put into my excel table, so I just want to put a 1 in the cell if the image exists and a 0 if it doesn’t. Does anyone have a good idea on how to accomplish this?