Add size method to file type