fix bug: pre-check of image-minimizer pkg