Fixed Image::setFormat() sets Image::type instead of Image::format.
Merge pull request #70 from FGM/image-format

Fixed Image::setFormat() sets Image::type instead of Image::format.