layers: Fix layer STDOUT logging
diff --git a/layers/image.cpp b/layers/image.cpp
index 7fc5f7c..f41a0e0 100644
--- a/layers/image.cpp
+++ b/layers/image.cpp
@@ -86,15 +86,7 @@
     {
         FILE *log_output = NULL;
         const char* option_str = getLayerOption("ImageLogFilename");
-        if(option_str)
-        {
-            log_output = fopen(option_str, "w");
-        }
-        if(log_output == NULL)
-        {
-            log_output = stdout;
-        }
-
+        log_output = getLayerLogOutput(option_str, "Image");
         layer_create_msg_callback(data->report_data, report_flags, log_callback, (void*)log_output, &data->logging_callback);
     }
 }