adjust to css's patterns
change to pillow