photo header decode