Don't you need to check for isOSImage as well?