Remove the gray areas from the top, bottom right, and bottom left edges. Then straighten and crop the image to form a perfect rectangular frame.