Adding parameters to allow flexibility

Adding $tag_name parameter to BgImage class.