Problem with resize corrected (fixes #3).
Merge branch 'bug003-resize' into develop