Added Quality Param

Added the param “quality” to let the user choose the quality of the
output thumbnail image