--- comment_upload.module	2009-07-14 22:00:58.000000000 +0200
+++ comment_uploadNew.module	2010-04-29 11:06:45.000000000 +0200
@@ -358,10 +358,7 @@ function comment_upload_comment_view(&$c
 
       if ($display_setting != 'none') {
         $display_images = TRUE;
-        if (is_numeric($display_setting)) {
-          $imagecache_preset = imagecache_preset($display_setting);
-          $preset_name = $imagecache_preset['presetname'];
-        }
+        $preset_name = $display_setting;
       }
       $comment->files = $files;
       $comment->comment .= theme('comment_upload_attachments', $files, $display_images, $preset_name);
