Update attachments.php

Small changes...