A paint-based approach for optimal lighting design in real scenes