Simplified the media parsing for image rendering.