adding a dynamicPixelMap function, closing #28