The one colour check routine is most likely similar to mine, and it would cause one pixel to be designated as a one-colour image.
Also theoretically, a 1 pixel image is still to the power of 2. 2 to the power 0 is 1. Whether the maths of the checking routines sees this is another matter.