corrected references for $image_id in fix_other_images