Can you please separate the code into images.py, sharpen.py, & smokey.gif Instructions 1 #Header file section for image module. The edge-detection function (detectEdges) described in Chapter 7 and shown below returns a 2 from images import Image black and white image. Think of a similar way to transform color values so that the new image is 3 #Function defition of still in its original colors but the outlines within it are merely sharpened. edge_detection: This function 4 #is used to identifying and def detectEdges(image, amount): marking the outline "" "Builds and returns a new image in which the edges of 5 # of an image. the argument image are highlighted and the colors are 6 def edge_detection(image, reduced to black and white."" " degree, threshold): 7 #Function defition of def average(triple): average is used to (r,g,b)= triple 8 #calculate the average of return(r+g+b)//3 given pixel blackPixel =(0,0,0) whitePixel =(255,255,255) new = image.clone () for y in range(image.getHeight () - 1): for x in range( 1 , image.getWidth ()) : oldPixel = image. getPixel(x,y) leftPixel = image.getPixel (x1,y) bottomPixel = image. getPixel(x,y+ 1) oldLum = average ( oldPixel ) leftLum = average ( left tixel ) bottomLum = average (bottomPixel ) if abs(oldLum - leftLum) > amount or 1 abs(oldLum - bottomLum) > amount: new. setPixel ( x,y, blackPixel) else:Instructions CENGAGE | MINDTAP Q Search this course Programming Exercise 7.10.