A complaint claimed that paintings of two Hindu deities at an art gallery "hurt religious sentiments".