refactored tags and images classes code