moved pic edit to model