I agree here, this is very strange to call `new` without assigning the result. If you want to put the resize logic inside the Atachment object, please make it another function...