refactor
refactor
change write api
change resize api
change filter api