I/O library for images produced by 2D X-ray detector