Parse image.

Signed-off-by: cyberzhg <cyberzhg@gmail.com>