Fix for Mercury Missing Image
replaced stubs for stdout and stderr