Changed image handling, extended add new property

image handling was changed to reduce effects of a memory leak.