updates pixel array type; still adding superfluous 0's in header