Query string and image handling