add AI detection function on compliant images