+ if (check_file) {
+ char full_path[CTSVC_IMG_FULL_PATH_SIZE_MAX] = {0};
+ if (NULL != strstr(thumbnail_path, CTSVC_CONTACT_IMG_FULL_LOCATION))
+ snprintf(full_path, sizeof(full_path), "%s", thumbnail_path);
+ else
+ snprintf(full_path, sizeof(full_path), "%s/%s", CTSVC_CONTACT_IMG_FULL_LOCATION, thumbnail_path);
+
+ if (0 != access(full_path, F_OK)) {
+ free(thumbnail_path);
+ /* The original image is used as a thumbnail when the thumbnail is not made */
+ return strdup(image_path);
+ }
+ }
+