add thumbnail resizing on image upload