added new rect_encopts option