getBound(x, y) {
    const index = ((y >> 0) * this.imageData.width + (x >> 0)) * 4;
    return this.imageData.data[index + 3] > 0;
  }
Checks if a point is within the bounds of the image.
@param {number} x - The x-coordinate to check.
@param {number} y - The y-coordinate to check.
@returns {boolean} True if the point is within bounds, false otherwise.