Add cancelation support to resize animation