fix text and image scaling, positioning, rotation