Why do you think you know more about why Al Qaeda and ISIS attack the West than Al Qaeda and ISIS? They have explicitly and repeatedly stated other reasons for their attacks on the West than those you claim. Why don't you believe them?
To put it more simply: when Danish cartoonists are threatened for offending Islam, is that also because of imperialism?