Refactor Pixmap: extract class ArrayMap