Some scripts to work with diffraction images