A Global and Patch-wise Contrastive Loss for Accurate Automated Exudate Detection