add dir&size to image file