only try to read as png if at least >= 8 bytes