function delete_from_gallery()
 {
     $id_gallery_image = Params::get("id_gallery_image");
     $peer = new GalleryImagePeer();
     $gallery_image = $peer->find_by_id($id_gallery_image);
     $gallery_peer = new GalleryPeer();
     $gallery = $gallery_peer->find_by_id($gallery_image->id_gallery);
     $collection_peer = new GalleryCollectionPeer();
     $gallery_collection = $collection_peer->find_by_id($gallery->id_gallery_collection);
     $full_image_path = GalleryCollectionController::GALLERY_COLLECTION_ROOT_DIR . $gallery_collection->folder . "/" . $gallery->folder . "/" . $gallery_image->image_name;
     $f = new File($full_image_path);
     ImagePicker::delete_image_thumbnails($f);
     $f->delete();
     $peer->delete($gallery_image);
     return Redirect::success();
 }