Add _get_template_id() and fill out deleteimage a little