fix copypasta error in generated_image_url()

Closes #834.