BUG: image spacing infomation is passed in