add verification on return value -- review request #128

add judgement on InitPic.

if the colour space format is not supported, should return.