Refactor ImageLoader to avoid code duplication

Test: Manual
Bug: 209914417
Change-Id: I4bc2cff3469c80f3ecd93592cd3e612f2fdd80e5
1 file changed