set padding 0 for upload image div
merge from Leon's commit
fix image upload javascript bugs