logo will be the image width minus the logo widththe top coordinate for where to paste the logo will be the image height minus the logo height image width logo width logo height image height image logo figure - the left and top coordinates for placing the logo in the bottom-right corner should be the image width/height minus the logo width/height after your code pastes the logo into the imageit should save the modified image object add the following to your program#python resizeandaddlogo py resizes all images in current working directory to fit in squareand adds catlogo png to the lower-right corner import os from pil import image --snip-check if image needs to be resized --snip-add the logo print('adding logo to % (filename) im paste(logoim(width logowidthheight logoheight)logoimsave changes im save(os path join('withlogo'filename)the new code prints message telling the user that the logo is being added upastes logoim onto im at the calculated coordinates vand saves the changes to filename in the withlogo directory when you run this program with the zophie png file as the only image in the working directorythe output will look like thisresizing zophie png adding logo to zophie png