Extracted out separate render method so qrcodes can be rendered in views, helpers, etc.