fix crash bug when using [CXPhoto initWithImage:]