Switches backgrounds to css, and optimizes sprite sheets