The idea behind the commandments about idols is that we are not to worship the idols. It cannot be a prohibition against statues altogether because at certain times God actually commanded that statues/images be made:
“And you shall make two cherubim of gold; of hammered work shall you make them, on the two ends of the mercy seat. Make one cherub on the one end, and one cherub on the other end; of one piece of the mercy seat shall you make the cherubim on its two ends. The cherubim shall spread out their wings above, overshadowing the mercy seat with their wings, their faces one to another; toward the mercy seat shall the faces of the cherubim be” (Ex. 25:18–20).
God told Moses to “make [a statue of] a fiery serpent, and set it on a pole; and every one who is bitten, when he sees it shall live. So Moses made a bronze serpent, and set it on a pole; and if a serpent bit any man, he would look at the bronze serpent and live” (Num. 21:8–9).
Catholics do not worship statues, therefore we do not violate the commandment.
For more detailed reading: Catholic Answers Tract Do Catholics Worship Statues