Index: imagecache_profiles.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache_profiles/imagecache_profiles.module,v
retrieving revision 1.4.2.13
diff -u -p -r1.4.2.13 imagecache_profiles.module
--- imagecache_profiles.module	21 Feb 2010 04:52:33 -0000	1.4.2.13
+++ imagecache_profiles.module	21 Feb 2010 14:24:46 -0000
@@ -31,10 +31,16 @@ function imagecache_profiles_preprocess_
       // Define default user picture size
       $size = variable_get('user_picture_imagecache_profiles_default', 0);
     }
-    // If on user profile page
-    if (arg(0) == 'user' && is_numeric(arg(1)) && (arg(2) == NULL || arg(2) == 'edit')) {
-      if (variable_get('user_picture_imagecache_profiles', 0)) {
-        $size = variable_get('user_picture_imagecache_profiles', 0);
+    // If on user profile page.
+    if (arg(0) == 'user') {
+      // Only show profile image for profile page, and edit account form,
+      // not user/123/relationships or other module define pages.
+      if (arg(2) == NULL || arg(2) == 'edit') {
+        if (is_numeric(arg(1)) || (module_exists('me') && arg(1) == me_variable_get('me_alias'))) {
+          if (variable_get('user_picture_imagecache_profiles', 0)) {
+            $size = variable_get('user_picture_imagecache_profiles', 0);
+          }
+        }
       }
     }
     // If viewing a comment
