PaintMessageFactory implemented

newLine issue removed