image upload design
correctly count selected categories