Update distributionFromImage.m