Fix image_id generation in export-old-data.