[GEOS-6783]: Fixing imageLayout on coverageViewReader - Backport to 2.6.x