Implement allocWithZone in the image store.