Fixed the background changing code in background.js to work properly with an image