Algorithm detects heart disease by analysing selfies