add id to image model