closed #2522: Let Image::initWithImageData() support the packed data.

Fix the bug reported at issue #3406