hextree - avoid quantizing images with less than 3 pixels (hextree implementation requirement)