remove strange empty boxes from image file