Fixed margin issue in GridContainer (Task #12027)
Fixed false references in GridContainer.
Fixed #11991: Added missing translation string
Fixed size calculation of canvas when img is streched in width.
Corrected canvas resizing when picture is smaller than canvas in height
and width.
Fixed calculation when img is rotated in canvas.