query image wrapper