Image generator: fix link for existing images
Image generator: fix link for existing images

Due to stupidity in the database interface, the image link for
previously generated graphs didn't get shortened properly, effectively
breaking previously generated graphs. Make sure that the ID correctly
gets recognised as needing shortening.

jast/instagraph