fixes crash in mysql when token is unknown

fixes #85
make image_uri optional