Towards Scalable Foundation Models for Digital Dermatology