Only request the serving URL for an image once.

Also provides a migration to convert existing images.