Add parent to cached images

if an image processing function is called on an already processed image the resulting cached image is stored in the assets/_resampled because the cached version of the image has no ParentID, which  cacheFilename needs to set the correct path.