straighten and remove background