removed unneeded field tempImage