wrote function to multiply two real images