make upload state working
fixed missing var statement
set design information on upload image, trigger events