[width generation] modifying the width generation
to fix the bug in the filename (when using 'auto')