Add isset check for sizes
Merge pull request #2219 from krbvroc1/add_media_fix

Add isset check for sizes