Improve evicting image base on key