fixed gif initial load and render origin for gifs