Automatic LSB detection depending on the existence of a real header