Update ImagePreviewRepository.php