Fixed #5 (Memory/GDI leak)