correct off by one bug with images captured; cache captured images