extract logic for image loading into BitmapRetriever, should be reused in SimpleLoader as well.