Testing typeof imagePath