resizeCanvasDimension(dimension) {
    if (!dimension) {
      return Promise.reject(rejectMessages.invalidParameters);
    }

    return this.execute(commands.RESIZE_CANVAS_DIMENSION, dimension);
  }
Resize canvas dimension
@param {{width: number, height: number}} dimension - Max width & height
@returns {Promise}