outsourced image-frame conversion; added render test