Make extension checking for thumbnailing case insensitive