Replaced redundant return $this->replaceImage(); return $this; to return $this->replaceImage();