add initial support for image preview/capture