Simple thumbnail generator using phantomjs and imagemagick