Configurable width and quality parameters (replaces #26)

Here's another PR with the changes you suggested in #26.

The following configuration parameters are added:

    maxWidth
    widthStep
    jpegQuality
    jpegRetinaQuality