A modular procedure for automatic red-eye correction in digital photos