Use preview box for resizing attachments