Added functionality for switching bg-image