convert boxes to image and save locally