Don't allocate the images twice.