Improved background image transition