optimize image show and cache speed