"Mipmap" function and resizing fixed