Correct watermark in different file formats