Got my logic backwards there: only updating the image _if there is_ an image to update