end of day commit
rearranged image i/o functions