private CharSequence trim(CharSequence val){
        if(val.charAt(val.length()-1) == '\n' && val.charAt(val.length()-2) == '\n') {
            val = val.subSequence(0, val.length() - 2);
        }
        return val;
    }
Create image getter for context

@param context
app/src/main/java/com/github/pockethub/android/util/HttpImageGetter.java