added auto image refresh