Add hierarchical argument

This will add the directory path in class name.

img/
  /A
    /B
       1.png

You will get .a_b_1