           # Using dot accessors here so the custom getters are invoked
           name: badge.name
           description: badge.description
-          image: badge.image.original.defaultUrl
+          image: badge.imageUrl
           criteria: badge.criteria
           id: badge.id
       }

      @model("Organization").findById @organization, (err, org) =>
        @email_hash = hexDigest(@email, org.salt)
        next()


UserSchema.virtual('recipient').get ->

    b = badge.toJSON()
    b.issued_on = new Date()
    b.badge_id = badge.id
    b.image = badge.imageUrl
    b.issued_count = undefined
    @badges.push b
    @save (err, user)->
