Fixed minor bug in the local image query. (v2.2.2)