public function getMergedImage($format, $padding, $mergeimage) {
            if($this->owner->exists() && Director::fileExists($mergeimage)) {
                $cacheFile = $this->owner->cacheMergedFilename($format, $padding, $mergeimage);
                
                if(!file_exists(Director::baseFolder()."/".$cacheFile) || isset($_GET['flush'])) {
                    // merge the current image over the given Merging Image
                    if($format == 'over') $this->owner->generateMergedImage($padding, $mergeimage, $this->owner->getFullPath(), $cacheFile);
                    // merge the current image over the given Merging Image
                    else $this->owner->generateMergedImage($padding, $this->owner->getFullPath(), $mergeimage, $cacheFile);
				}
                
                if($this->owner instanceof SecureImage) $cached = new SecureImage_Cached($cacheFile);
                else $cached = new Image_Cached($cacheFile);
                
				// Pass through the title so the templates can use it
				$cached->Title = $this->owner->Title;
                $cached->ID = $this->owner->ID;
                $cached->ParentID = $this->owner->ParentID;
				return $cached;
            }
		}