Creat image uploader(beta)
fixed a bug of undefined
refactoring post class