Add rails 4 support

rails 4 changed the method **filename_with_extensions**  arguments https://github.com/rails/rails/commit/02c814c99202e42ebeb10b89af1392b594c727e9.

Sadly, the  `format`  argument does not have default value :(