adding error or success log messages for imagetoserver