Add image query endpoint