fix bug: pre-check of image-minimizer pkg
Merge pull request #2 from leiqzhang/master

fix bug: pre-check of image-minimizer pkg