added support for media dimension customization