Memory leaks fixed.

KB-20230205-01

Version

Before XFRX 22.5

Symptoms 

XFRX don't release all memory.

Cause

Function which works with images don't release all GDI+ objects.