implemented header with picture and optimized getsheetend functiony