Prevent crash when delete images too quickly