Merge pull request #1 from makinacorpus/master

sync with main repo
Merge pull request #2 from makinacorpus/master

sync with main repo
add size param, so user can control image size.
adjust code.
Merge pull request #9 from mozillazg/master

add size param to control image size.