fixed mip saving for tile generation, and migrated to imageBuf class