How a selfie taken minutes before the death solved a murder mystery