Both. Idols and icons. At least in my Tanakh. My Tanakh (New JPS translation) says (Deuteronomy 5:7) "You shall not make for yourself a sculptured image, or any likeness of what is in the heavens above or on the earth below or the waters under the Earth."