# Pastebin glTLPo9B m = Enum.reduce(img.pixels, {%{}, 0}, fn pixel, {acc, index} -> x = Kernel.trunc(rem(index, img.width)) y = Kernel.trunc(index / img.width) {IO.inspect{x, y}} { Map.put(acc, {x, y}, pixel ), index + 1 } end) |> elem(0)