resize the background images