Update UI image resource and fix bug