"If the error is from that," -> "If the error is a NonSquareImageError"

"then it returns allowing the promise to return to the resolve state". 
I'm not crazy about the double use of `return` with two different meanings in this sentence. Maybe the second one could be "transition to the resolved state".