Auto transform uiimage to nsdata