Despite specifying the image dimensions to be 50px by 50px, it appears stretched on the y-axis like this. View Stretched Image
I suspect that the issue lies with the CSS styling applied. Here is my current CSS code:
canvas {
background-color: green;
padding: 0;
margin: auto;
display: block;
height: 700px;
width: 700px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
If you have any insights on why the image is stretched, please share them with me.