Move image loading to its own ImageLoader class.