make sample size smaller when decode bitmap prevent out of memory problem