fixes interface error in comparestacks and handles RGBA stacks