(Ed: I'm not an expert - I'm creating these "under the hood" pages in the hope that a) better coders than me will stop by and correct them, and b) other coders like me have a better place to start on some commonly-done coding tasks)

You can store and link to images in Ushahidi 2.X.  For instance, creating a report gives you the option of storing images associated with it.  But how does this work "under the hood", and what's a good way to replicate this, say as part of a custom install.

Image::factory($filename)
->resize(89,59,Image::HEIGHT)
->save(Kohana::config('upload.directory', TRUE).$newfilename);