How to prepopulating height and width from uploaded content.