Managing more errors

Test directories (source and dest)
Test if .jpg files are available in src directory