Imaging techniques for X-ray fluorescence and X-ray diffraction