Add foreign key to image table