Add local version of background image
Clean up code to make variable names clearer