added atlas loading to quad example