boundaries pixels values memory allocation removed