Update image reduction loop while on the media upload modal inside post-new.php or page-new.php or any CPT