Broken regex look like check here
because of which this piece of ur code
i.e format, width, height, depth
all are set to nil
because scan
is returning nil
because of broken regex
fix the regex
from your side is what I suggest until they fix it and patch it
Hope this help