adds width and height to file object