@Override
    public void setImageResource(int resId) {
        if (mResource != resId) {
            mResource = resId;
            mDrawable = resolveResource();
            updateDrawableAttrs();
            super.setImageDrawable(mDrawable);
        }
    }
Controls how the image should be resized or moved to match the size
of this ImageView.

@param scaleType The desired scaling mode.
@attr ref android.R.styleable#ImageView_scaleType
sample/src/main/java/com/etiennelawlor/quickreturn/views/RoundedImageView.java