Joint Trace Detection in Digital Images