So I think I know how to do it. I need to get the coordinates of the cursor when the onclick()
function is called. The thing is, I'm not sure how I can create a new image when I click. I'm sorry for not showing my attempts. They exist, but basically do nothing. Does anyone know how to do this? Thanks.
edit: Note that the images can't be there to begin with. They have to be created on click.