Adjusting client script to download new image first, before clearing the screen.