Handle images with different aspect ratios. Refactoring of direction GD2 raw data access.