Minor fixes on schema editing form

Additional fixes for export model to png. Now the correct bounding rect
is calculated.