Removing images from mem if it gets low