Added transitions for the background-img so there's no flicker

Images now transition smoothly from one state to another without the brief flicker in between.