Fixed mipmap size calculation