merged with aboisvert/pixii and added queryItem() changes