Fixing the bug that the background image gets tiled after rotation.