Increasing heap and errasing the images from the memory on close photo gallery