added minmaxscore query used for normalization of image scores