refactored adding keywords and tags to media (images/videos)