fixed image leak