failed attempt to speed up image rendering