Specified more specfic scope when updating file sizes.
Introduced helper methods to help organize and sanitize filename rendering.