web: Fix apierror handling
web: Fix bug in capture preview (both images were for even page)