made map processing routine more robust by checking for other fitshead keywords