changed from one write per query to single write many queries for still image mode