Attachment pages redirect to image URL rather than 404