add imagenet prediction on numpy arrays

This is the same request as #289 on the master branch, but now on the dev branch.