Debug of image save.

Signed-off-by: Yuriy Rusinov <yrusinov@gmail.com>