Prompt user to confirm button click event before allowing the event to proceed.
Extend toImageData function for fabric.js