combined imaginary_image() and imaginary_images() to one function, imaginary()