Changed image search

Changed atoi to sscanf