Use typed arrays for image construction.