started on manual mipmapping with lanzcos filter, then realized the bug in my acos