Maximize margins for robust splicing detection