Arragened the reponse, now resulting array is in the same order as passed it image array is.