Automatic redeye removal for smart enhancement of photos of unknown origin