Fixes NB#123431, size of some attachments is wrong in viewer window