Support thumbnailQuality with GD for jpg and png thumbnail types. Closes #62