auto test and image save

auto test and image save