Update podspec to use 10.8 and 6.0
add more tests
add check to prevent possible error when jpeg image data is broken