fixing scaling of gifs, ping pong code for later