simple image upload - restucture params JS