fixing input event and popup window for max size error
fixing aspect ratio bug and doing validation when entity is saved