@Override
    public void downloadImage(ModpackModel key, File target) {
        Resource res = resourceType.getResource(key);

        if (res == null || res.getUrl() == null || res.getUrl().isEmpty())
            return;

        try {
            mirrorStore.downloadFile(res.getUrl(), userModel.getCurrentUser().getDisplayName(), target.getAbsolutePath());
        } catch (InterruptedException ex) {
            //user cancel
            return;
        } catch (IOException e) {
            Utils.getLogger().log(Level.INFO, "Error downloading pack resource " + res.getUrl() + " for pack " + key.getName(), e);
        }
    }