Refactor Tag to provide direct access to frame.

This is useful in the case of the image tag where we need mime_type in addition to content.