Moved media handling into Attachment model; don't resize images smaller than 200px width.