generating image filled with random color locally