Added 2.2.5 imjs - bug fix for query construction