add image directory
fix overflow