added mipmap option to image loader