Fixed creation of last level of tiles from non jpeg images via ImageMagick.