High-tech device can catch skin cancer early