fixes a resize bug for grayscale images