Before we also calculated the file size here.

the idea behind it was to have a model method to update the dimensions after new content is set.