// handle img extensions in the end of query string in the dispatcher