save_image function now works with any temporal resolution, added unit
test for save_image