Implement check for correct type of sprite files