tweak code to speed up image loading