[DEV] add resizing file depende=ing on size and not do it a second time