A painting of a nude woman with her legs open has prompted a police visit to an art gallery in Mid Wales.