Speed up image drawing