functions for image attach to a item with codeigniter. This functions use class upload.