[QUERY] - Updated write_image script to cross platform.