maxWidth/maxHeight
refactory & extract media/property