updated example to actually traverse pixels