FIX Fixed re-publishing of sampled files

* Fixed issues with handling the republishing of resampled images when
  versioned extension is applied
* Fixed the 'inheritance' of the CDNFolder setting