added the line for actually saving the image file