Refactors to_iframe; moves bulk of method to superclass and adds defaults