Enhance images details call by query

The images.details method needs to support the query parameter.
There is no other way how to pass the query into the images
collection.