public void init(final String contextCode, final Long maxImageUploadSize) {
        this.geocode = contextCode;
        this.maxImageUploadSize = maxImageUploadSize;

        if (geocode != null) {
            final Folder ownImageFolder = ImageUtils.getSpoilerImageFolder(geocode);
            final boolean hasOwnImages = ownImageFolder != null && !ContentStorage.get().list(ownImageFolder).isEmpty();
            this.ownImageFolderUri = hasOwnImages ? ownImageFolder.getUri() : null;
            binding.imageAddOwn.setVisibility(hasOwnImages ? View.VISIBLE : View.GONE);
        }
    }
call once to initialize values for image retrieval
main/src/main/java/cgeo/geocaching/ui/ImageListFragment.java