added count()
added width/height parameters on fromColor
fix (use ? to prevent setting w/h to 0 in debug)