Content-based classification of digital photos