added ability to specify a thumb quality in options array