Uses stack overflow suggestion to reload image without flicker