fixed type in comment of ImagePainter