Add routines to scale images as they are being rendered.