[#2603] WIP for perf fix on resizing media.