Fix issue with duplicate sizes in file name.

For example /some/path/small_small_zoidberg.jpg