Here's a picture of my problem:

I don't want to display all three of these pictures inside of my box when I click on them I want to display a different image when I click on a different button, but I don't know how to go about this. I was thinking about incorporating css into my javascript by using the display property whenever I click on a button, but I wasn't able to get that to work.
Here's my HTML code:
function player_1(src, width, height, alt) {
var img = document.createElement("img");
img.src = src;
img.width = width;
img.height = height;
img.alt = alt;
// This next line will just add it to the player_1 box
document.getElementById("player_1").appendChild(img);
}
function player_2(src, width, height, alt) {
var img = document.createElement("img");
img.src = src;
img.width = width;
img.height = height;
img.alt = alt;
// This next line will just add it to the player_2 box
document.getElementById("player_2").appendChild(img);
}
//functions for displaying images when clicking on player 1 icons
function rock_logo() {
var src = "images/rock.png";
player_1("images/rock.png", 60, 60, "rock");
}
function paper_logo() {
var src = "images/my_paper.png"
player_1("images/my_paper.png", 60, 60, "paper");
}
function scissors_logo() {
var src = "images/scissors.png";
player_1("images/scissors.png", 60, 60, "scissors");
}
//Functions for displaying images when clicking on player 2 icons
function player_2_rock() {
var src = "images/rock.png";
player_2("images/rock.png", 60, 60, "rock");
}
function player_2_paper() {
var src = "images/my_paper.png";
player_2("images/my_paper.png", 60, 60, "rock");
}
function player_2_scissors() {
var src = "images/rock.png";
player_2("images/rock.png", 60, 60, "rock");
}
//timer works properly now
const timerText = document.getElementById("timer");
const btnStart = document.getElementById("btn-start");
let count = 10;
let intervalId;
btnStart.addEventListener("click", function() {
intervalId = setInterval(function() {
count -= 1;
timerText.textContent = count;
if (count == 0) {
clearInterval(intervalId);
}
}, 1000);
});
<h1>Rock, Paper, Scissors Game</h1>
<div id="button">
<button id="btn-start">Press to start timer</button>
</div>
<div class="player_blocks">
<div id="icon_1">
<button class="btn-start" onclick="rock_logo();"><img src="images/rock.png" height="50px" width="50px"></button>
<button class="btn-start" onclick="paper_logo();"><img src="images/my_paper.png" height="50px" width="50px"></button>
<button class="btn-start" onclick="scissors_logo();"><img src="images/scissors.png" height="50px" width="50px"></button>
</div>
<div id="player_1_container">
<div id="player_1"></div>
<div id="counter_1">
<div class="counter"></div>
<div class="counter"></div>
<div class="counter"></div>
</div>
</div>
<div id="time">
<p id="timer">10</p>
</div>
<div id="player_2_container">
<div id="player_2"></div>
<div id="counter_2">
<div class="counter"></div>
<div class="counter"></div>
<div class="counter"></div>
</div>
</div>
<div id="icon_2">
<button class="btn-start" onclick="player_2_rock();"><img src="images/rock.png" height="50px" width="50px"></button>
<button class="btn-start" onclick="player_2_paper()"><img src="images/my_paper.png" height="50px" width="50px"></button>
<button class="btn-start" onclick="player_2_scissors()"><img src="images/scissors.png" height="50px" width="50px"></button>
</div>
</div>