add posts resource, convert figure model to polymorphic image model, use proper index paths