add a img check in pyramid.c
Merge branch 'master' of github.com:davidgao/libimgfeatures