added resizeFromBody option, fixed coffeescript output filename