ht);
        };

        var rect = {};
        var drag = false;

        function drawRect() {
            ctx.clearRect(0, 0, canvas.width, canvas.height); // clear canvas
            ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
            ctx.strokeStyle = "#00ff13"; // set the rectangle color to green
            // Make it bold
            ctx.lineWidth = 3;
            ctx.strokeRect(rect.startX, rect.startY, rect.w, rect.h);
        }

        function mouseDown(e) {
       