added has_many:through association in image:category and video:category, and setup tokenize input in image