Script that allows you to cancel the download/preload pictures in javascript.