Plugged image memory leak