Refactor method of retrieving URI of background image