Deletes unnecessary image