Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/img_assist.module,v retrieving revision 1.103 diff -u -p -r1.103 img_assist.module --- img_assist.module 9 Jun 2009 00:55:06 -0000 1.103 +++ img_assist.module 4 Jul 2009 11:36:45 -0000 @@ -1301,7 +1301,13 @@ function img_assist_display(&$node, $siz if ($regen) { _img_assist_build_derivatives($node, $size); } - + + // For custom size images, add a consistent CSS class, JavaScripts can rely on. + $attributes = array(); + if (is_array($size) && isset($size['key']) && strpos($size['key'], 'img_assist_custom') === 0) { + $attributes['class'] = 'image-img_assist_custom'; + } + return image_display($node, $label); }