connected gallery to painting