Remove duplicated getSubSampleFactors() function. Simplify.
Attach a file by drag & drop or click to upload