Cancellation support

Added cancellation support when flipping through images quickly.