Add rules for images