Changed -1 to 0 for bears + another bugfix

Images with bears have a Y of 1;
Images without bears now have a Y of 0;
Made it so the program can accept an X and Y of any (matching) length,
not just one divisible by the number of folds.