Both images are correct.
The image on the left is for a CMOS CD4001. This is NOT directly equivalent to a bipolar SN7402 in the right image, either electrically (voltages and currents) or physically (pinout). Note that the left image power pin is Vdd (the correct designation for a CMOS part) as opposed to the right image of a Bipolar TTL part with a power pin labeled Vcc. This is because a bipolar transistor has a collector (c) while a CMOS transistor has a drain (d).
cc stands for common collector, a type of amplifier circuit. When FET logic came about, they changed the last letter to d for drain. Rather than use the technically correct Vcd (Voltage, common-drain), they went with dd for consistency and error reduction
ak