[DEBUG] MacOs image resize error & add pow2 scale limitation