Allow quality to be configurable

In images with few colors (such as a 4-color palette), a high value removes most of the detail, resulting in a nearly flat/blank image.

If you're open to this change I can also update the README!