Honestly I don't understand what you are doing here. Maybe you can give me a little heads up with the documentation of ThumbsUp or something like that.
Best that you can do is use the image id which you can get using $image['id']. It will depend where you want to implement this how you call the image array, for instance in /image/<encoded id> you need to use get_image()['id'] to get the id.