use a list comprehension instead
split raytrace into raytraceImage and raytracePixel