image query fix