Apparently, the captureViewAsImage method required another extension..