simplify image access pattern