Essay and painting competition held in city