fix file() width/height bug