Added support for ordering images

By passing through an `order` option to has_attachments, we support ordering images by position (or any other attribute).