fixed bug in mipmap generator that applied the scaling factor twice