add compute inSampleSize method.