dir505: fix image header, and kernel offset in image