If either the original painting or the photo was protected by copyright then it might have been copyright infringement to make the quilt in the first place. So many things to consider, it's safer to either base quilts on your own photos or get permission from the original artist before starting work.