Use file accessors to get the filename, not to_s which is an url