Delete image and manage keys