Fixes simultaneously rendering multiple images

Graphics throws InvalidOperationException when multiple thread are working with the same image.