Force thumb and frameless images to default size in DM

* Force wiki-configured default size for thumbnails and frameless images
  in the DM. This is done because at the moment Parsoid's output is of
  Wikipedia's default size rather than the local wiki's. The size is
  adapted if needed, directly in the DM.

Bug: 62013
Change-Id: I6778705306f0dd6bb96afeb91383089a4ddab7ed
(partial cherry-pick of 89aecd54bad16ba1d4a6086b661afd45fe3ad2d6)