Moved the function from the Ptychography translator to df_utils.io_image so it can be used by anyone.