clean up Video preview image code