Refactor ImageSource.