Fix capture bug

Fix bug with images having spaces in the name