all changes before applying the background image