added deleteAll API and fixed hashmap image issue