Allow to specify the name of the sprite

Right now the name of the sprite is the basename of the source folder.
If you have a directory structrure like:

`home/sprite` your sprite file will be called `sprites/sprite.png`. For this case is better if the sprite would be called `sprites/home.png`.
This new option make this possible.