Image storing method and image output system