Remove some constraints in new routes so that images related to attachments are processed correctly (:id is non-numeric when the route is evaluated, it's still an Attachment object)