Refactoring background image variable