Update binsFromImage.m