Expand region around pixels and remove old code