convert loading img to data uri