iOS: fix crash from overrelease in UIImageToMat