Toggle Image between visible and hidden

Isn’t it always the way? As soon as you ask a question and leave something for a short period of time you figure out the answer yourself! Anyways in the hopes this may help someone else (or someone can come up with a more elegant solution) what I came up with is below