added support for @2x images in sprites
added #depend for js files
Add closure support.
Use `tmpfile` instead of `tmpnam`.