New function for quickly checking ESC keypresses during image processing loops
Check for user-initiated cancellation of the current image processing action
Allow user to cancel Gaussian blur by pressing ESC