Update attachment.php