modified VerifMap function, fixed bug loading image and map