package com.ruigoncalo.marvin.ui;

import android.content.Context;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

/**
 * ImageLoaderManager that wraps up an image loader lib
 *
 * Currently using picasso
 *
 * Created by ruigoncalo on 20/04/16.
 */
public class ImageLoaderManager {

    private ImageLoaderManager(){

    }

    public static void load(Context context, String url, ImageView target) {
        Picasso.with(context).load(url).into(target);
    }

    public static void fetch(Context context, String url){
        Picasso.with(context).load(url).fetch();
    }
}

@@ -94,16 +94,66 @@
 eView;%0A%0A
+import com.ruigoncalo.marvin.model.raw.Thumbnail;%0A
 import c
@@ -645,11 +645,525 @@
 );%0A    %7D
+%0A%0A    /**%0A     * Build image url path%0A     * Font: http://developer.marvel.com/documentation/images%0A     *%0A     * @param thumbnail image url info%0A     * @return full url to download image%0A     */%0A    public static String buildImageUrl(Thumbnail thumbnail, boolean landscape)%7B%0A        String path = thumbnail.getPath();%0A        String extension = thumbnail.getExtension();%0A        String imageSize = landscape ? %22landscape_amazing%22 : %22standard_large%22;%0A%0A        return path + %22/%22 + imageSize + %22.%22 + extension;%0A    %7D
 %0A%7D%0A

Create static method to build images path on ImageLoader