reorganization of images for better analysis