Move image and attachment fields to view helper