diff --git imagecache.module imagecache.module
index 5a44163..fcdf1a4 100644
--- imagecache.module
+++ imagecache.module
@@ -548,6 +548,8 @@ function _imagecache_cache_set_cache_headers($fileinfo, &$headers) {
  *  derivative is generated. NULL if the derivative is being generated.
  */
 function imagecache_build_derivative($actions, $src, $dst) {
+  global $user;
+
   // get the folder for the final location of this preset...
   $dir = dirname($dst);
 
@@ -557,6 +559,11 @@ function imagecache_build_derivative($actions, $src, $dst) {
     return FALSE;
   }
 
+  // Flush success messages for anonymous users.
+  if (!$user->uid) {
+    drupal_get_messages();
+  }
+
   // Simply copy the file if there are no actions.
   if (empty($actions)) {
     return file_copy($src, $dst, FILE_EXISTS_REPLACE);
